<template>
  <div class="container">
    <Category title="Foods">
      <img src="https://s3.ax1x.com/2021/01/16/srJlq0.jpg" alt="" />
    </Category>
    <Category title="Games">
      <ul>
        <li v-for="(game, index) in games" :key="index">{{ game }}</li>
      </ul>
    </Category>
    <Category title="Films">
      <video
        controls
        src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
      ></video>
    </Category>
  </div>
</template>

<script>
import Category from './components/Category.vue';

export default {
  name: 'App',
  components: { Category },
  data() {
    return {
      foods: ['香蕉', '苹果', '橘子', '火锅'],
      games: ['LOL', 'CF', 'CS', 'DATA'],
      films: ['教父', '复仇者联盟', '蜘蛛侠', '钢铁侠'],
    };
  },
};
</script>

<style>
.container {
  display: flex;
  justify-content: space-around;
}
img,
video {
  width: 100%;
}
</style>
